from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from django.contrib import messages
from django.utils.translation import ugettext as _
from django.core.cache import cache as memcache_cache

def cache(request):
    return render(request, 'admin_cache.html')


def clean(request):
    type = request.GET['type']
    
    if type == "memcached":
        memcache_cache._cache.flush_all()
        
    return HttpResponse(1)